'''
Created on 27 May 2012

@author: R
'''

import cv

cv.NamedWindow("roi", 1)
img = cv.LoadImage("roi.jpg")
img_rgb = cv.CreateMat(img.height, img.width, cv.CV_8UC3)
img = cv.CvtColor(img, img_rgb, cv.CV_BGR2HSV)
while 1:
    cv.ShowImage("roi", img)
    c = cv.WaitKey(7) % 0x100
    if c == 27:
        break

if __name__ == '__main__':
    pass